import React from 'react';
import "./app.css"

import App1 from "./components/home/home"
import SearchAddress from "./components/searchcity/index"
import {HashRouter as Router,Route,Redirect,Switch} from "react-router-dom" 
import TabBar from "./components/tabBar/index"
import Login from "./components/login/login"
import MineDetail from "./components/mine/mineDetail"
import Forget from "./components/mine/forget"
import PlusAddress from "./components/mine/plusAddress"
import Address from "./components/mine/address"
import AddDetail from "./components/mine/searchAddress"
import Shangpinxq from './components/shangpinxq/container/shangpinxqContainer'
import Topay from './components/shangpinxq/container/topayContainer'
import Chooseaddress from './components/shangpinxq/container/chooseaddressContainer'
function App(props) {
 
  return (
     <Router>
           <Switch>
                <Route path='/topay' component={Topay}/> 
                <Route path='/shangpinxq' component={Shangpinxq}/>  
                <Route path="/home" component={App1}/>
                <Route path="/city/:cityid" component={SearchAddress}/>
                <Route path="/app" component={TabBar} />
                <Route path="/login" component={Login} />
                <Route path="/mine/userInfo" component={ MineDetail}  exact/>
                <Route path="/forget" component={Forget}/>
                <Route path="/mine/userInfo/address" component={Address} exact/>
                <Route path="/mine/userInfo/address/add" component={PlusAddress} exact/>
                <Route path="/mine/userInfo/address/add/addDetail" component={AddDetail} exact />
                <Route path='/chooseaddress' component={Chooseaddress}/>
           </Switch>
           {/* <Redirect from="/" to="/home" />  */}
     </Router>
  );
}

export default App;
